<template>
  <div class="ele-loading-page"
  v-loading="loading" v-if="loading"
  element-loading-text="拼命加载中"
  element-loading-spinner="el-icon-loading"
  element-loading-background="rgba(0, 0, 0, 0.7)"></div>
</template>
<script>
export default {
  props: {
    eleLoading: {
      type: Boolean,
      required: true,
    },
  },
  computed: {
    loading() {
      return this.eleLoading;
    },
  },
  name: 'EleLoading',
};
</script>
<style lang="scss" >
.ele-loading-page {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
.el-icon-loading {
  color: #fff !important;
  font-size: 40px;
}
.el-loading-text {
  font-size: 20px !important;
  color: #fff !important;
}
</style>

